﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class HomePage : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        BindDate();
    }

    private void BindDate()
    {
        XmlDataSource xds = new XmlDataSource();
        xds.DataFile = ConfigurationManager.AppSettings["menuPath"];
        treeMenu.DataSource = xds;
        treeMenu.DataBind();

    }
}